/**
* @Description: render和send区别
* @DescriptionLink:https://www.jb51.net/article/140026.htm
* @DescriptionLink:https://juejin.im/post/6844904195317825550
* @author
* @date 2020/8/12
**/
const express=require('express');
const admin=require("./routes/admin");
const path=require('path');
const app=express();

app.use(express.static(path.join(__dirname,'src')));
// app.use((req, res) => { res.send('hi');});
app.use('/admin',admin)

app.get('/',(req,res)=>{
  res.send()
});

app.listen(8888,()=>console.log('express is running http://localhost:8888'));